How to avoid nested loops in python parsing aws

welcome to shbcf.ru